package org.singledog.dogmail.common.converter;

import org.apache.ibatis.annotations.Mapper;
import org.mapstruct.Mapping;
import org.singledog.dogmail.common.entity.BaseRequest;
import org.singledog.dogmail.common.entity.RequestEntity;

@Mapper
public interface RequestConverter {

    @Mapping(source = "baseRequest", target = "requestEntity.node")
    RequestEntity<BaseRequest> convertToRequest(BaseRequest baseRequest);
}
